package com.tencent.wxcloudrun.project.service;

import com.tencent.wxcloudrun.project.entity.muti.MenuMuti;
import com.tencent.wxcloudrun.project.entity.muti.OrderMuti;
import com.tencent.wxcloudrun.project.entity.query.OrderQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tencent.wxcloudrun.project.mapper.OrderMapper;
import com.tencent.wxcloudrun.project.entity.Order;
@Service
public class OrderService extends ServiceImpl<OrderMapper, Order> {
    @Autowired
    private OrderMapper orderMapper;
    public List<OrderMuti> pageList(OrderQuery orderQuery){
        return orderMapper.pageList(orderQuery);
    }
    public List<MenuMuti> menuList(Long orderID){
        return orderMapper.menuList(orderID);
    }
    public Long insertBack(Order order){
        return orderMapper.insertBack(order);
    }
}
